<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <script src='react.js'></script>
  <script src='react-dom.js'></script>
  <script src="babel.min.js"></script>

  <title>Document</title>
</head>
<body>
    <div id='root'></div>
    <script type="text/babel">
       class Myreact extends  React.Component{
         render(){
           return <h1 style={{color:this.props.color}}>Hello react</h1>
         }
       }
      ReactDOM.render(
        <Myreact color='blue' />,
        document.getElementById('root')
      );
    </script>
</body>
</html>
